package com.mew.common.rest.events;

import com.mew.common.rest.MewResponse;
import com.mew.common.rest.user.UserMoneyResponseMessage;
import com.mew.common.util.PbWriteUtils;
import com.zebra.common.ZebraBaseMessage;
import io.netty.buffer.ByteBuf;
import lombok.Data;
import lombok.ToString;

@Data
@ToString
public class GetOnlineGiftMessage extends MewResponse<GetOnlineGiftMessage> {

    private UserMoneyResponseMessage userMoneyResponseMessage;

    private int type;

    @Override
    public void write(ByteBuf byteBuf) {
        userMoneyResponseMessage.write(byteBuf);
        writeInt(byteBuf,type);
    }

    @Override
    public GetOnlineGiftMessage read(ByteBuf byteBuf) {
        return null;
    }
}
